package agngui.event;

import javax.vecmath.Point3d;

import agngui.agnmodel.AGNParameterHandle;

/**
 * defines a HandleDragEvent in the system
 * @author Ben Bloom
 * @author Phil Johnson
 */
public class HandleDragEvent extends HandleEvent {

	/**
	 * The point where the handle is located
	 */
	protected Point3d point;
	
	/**
	 * creates a new HandleDragEvent
	 * 
	 * @param handle The handle being dragged
	 * @param point The point where the handle is located
	 */
	public HandleDragEvent(AGNParameterHandle handle, Point3d point) {
		super(handle);
		this.point = point;
	}
	
	/**
	 * @return The point where the handle is located
	 */
	public Point3d getPoint() { return point; }
}
